// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
// 导入ElementUI
import ElementUI from 'element-ui';
// 导入axios
import axios from 'axios';
Vue.use(ElementUI);
Vue.config.productionTip = false
//把axios放入到Vue属性上  Vue.prototype 是原型链  可以给Vue类动态添加新的属性
Vue.prototype.axios = axios;//把我们导入的 axios模块 赋值给 Vue的新属性axios
//给axios配置基础url
// axios.defaults.baseURL ="http://127.0.0.1:8000"

import 'element-ui/lib/theme-chalk/index.css';

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
